import java.util.Scanner;

public class StringDemo {
    static void main() {
        String Username = "mu3e";
        String Password = "123456";


        Scanner sc = new Scanner(System.in);
        for (int i = 0; i <= 3; i++) {
            System.out.println("请输入用户名");
            String username = sc.next();
            System.out.println("请输入密码");
            String password = sc.next();
            if (username.equals(Username) && password.equals(Password)) {
                System.out.println("用户登录成功");
                break;
            } else {
                if (i == 2) {
                    System.out.println("用户已锁定，请联系周星星客服解除");
                }else{
                    System.out.println("用户登录失败，您还剩下"+(2-i)+"次机会");
                }
            }
        }
    }
}